testCase48='DBshop048_删除积分规则流程'
import  time
from public.action import *
from public.testData import *
from public.tools import*
from public.business import *
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,'客户管理','管理积分','积分规则')#进入积分规则三级页面
firefox.find_element_by_xpath('//td[contains(.,"遵守规则")]/following-sibling::td[4]/a[2]').click()#定位到遵守规则删除链接
firefox.switch_to.alert.accept()#处理java框
time.sleep(4)
try:
    firefox.find_element_by_xpath('//td[text()="遵守规则"]').is_displayed()#断言
    writeLog('%s 测试不通过' % testCase48)
except:
    writeLog('%s 测试通过' % testCase48)
    getPhoto(firefox)
firefox.quit()